package cn.tedu.csmall.passport.mapper;
import cn.tedu.csmall.passport.pojo.entity.Admin;
import cn.tedu.csmall.passport.pojo.vo.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository

public interface AdminMapper {
    int insert(Admin admin);
    int countByUsername(String username);
    int countByEmail(String email);
    int countByPhone(String phone);
    int deleteById(Long id);
    int updateById(Admin admin);
    int updateInfoById(Admin admin);
    int updatePasswordById(Admin admin);
    AdminStandardVO getAdminVO(Long id);
    AdminUpdatePasswordVO getPasswordVO(Long id);
    AdminInformationVO getAdminInfoVO(Long id);
    List<AdminListItemVO> list();
    AdminLoginInfoVO getLoginInfoByUsername(String username);
}
